import type { AstroIntegration } from "astro"
import modules from "./modules"


export default function (): AstroIntegration {
  return {
    name: "BabelPolyfillSingleFile",
    hooks: {
      "astro:server:start": async () => {
        // await import("babel-polyfill")
        await Promise.all(modules.map((m) => m()))
      },
    }
  }
}